# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfce4-power-manager
pkgver=4.16.0
pkgrel=0
pkgdesc="Power management for the Xfce desktop environment"
url="https://goodies.xfce.org/projects/applications/xfce4-power-manager"
arch="all !s390x !riscv64" # limited by polkit
license="GPL-2.0-or-later"
depends="polkit"
makedepends="xfconf-dev xfce4-panel-dev dbus-glib-dev libnotify-dev
	libxrandr-dev libxfce4ui-dev upower-dev intltool"
subpackages="$pkgname-doc $pkgname-lang"
source="https://archive.xfce.org/src/xfce/xfce4-power-manager/${pkgver%.*}/xfce4-power-manager-$pkgver.tar.bz2"


build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="1c6ecfb7696bc13c9b11fdfb4ad4e3278de2350bbc59c84c933b28c07c1a0c55b9954794e1f57e4407d2b54ffaace9ea5baed829bf0683332cf9d12bff7e71ec  xfce4-power-manager-4.16.0.tar.bz2"
